package com.zyf.lj.service.impl;

import com.zyf.lj.entity.CollegeInfo;
import com.zyf.lj.service.CollegeInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import com.zyf.lj.mapper.CollegeInfoMapper;

@Service
public class CollegeInfoServiceImpl implements CollegeInfoService {
    @Autowired
    private CollegeInfoMapper collegeInfoMapper;

    @Override
    public List<CollegeInfo> getCollegeInfoByType(String type) {
        return collegeInfoMapper.selectByType(type);
    }

    @Override
    public List<CollegeInfo> getAllCollegeInfo() {
        return collegeInfoMapper.selectAll();
    }
}
